package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

/**
 * @Description 购买敦煌rmb礼包日志
 * @Author cwq
 * @Data 2021/7/1 11:21
 */
@FieldTypeAnnotation(tableName = "t_l_ck_dunhuangshiku_booknum_change", desc = "敦煌-珍贵文书变更记录", autoSave = true, uploadCk = true, isCross = true)
public class LogDunHuangShiKuBookNumChange extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "改变前的值")
    private int beforeValue;

    @FieldTypeAnnotation(desc = "改变后的值")
    private int afterValue;

    @FieldTypeAnnotation(desc = "改变途径(0进入第三层 1被击杀 2击杀玩家 3击杀npc 4记录领取)")
    private int type;

    @FieldTypeAnnotation(desc = "目标id type=1表示当时的击杀玩家  type=2表示当时的被击杀玩家 type=3表示npcId type=4表示当时目标id")
    private long targetId;

    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;

    public LogDunHuangShiKuBookNumChange(int activityId, long userId, int beforeValue, int afterValue, int type, long targetId, int eventId) {
        this.activityId = activityId;
        this.userId = userId;
        this.beforeValue = beforeValue;
        this.afterValue = afterValue;
        this.type = type;
        this.targetId = targetId;
        this.eventId = eventId;
    }

    public long getUserId() {
        return userId;
    }
}
